/**
 * Slot Machine, July 2012
 *
 * Owner: Rami Abou Ghanem
 * Owner: Sumbul Alvi
 *
 */

package Backend;

import java.util.Random;

public class SlotNumber {
	private int slotValue;
	
	public SlotNumber()
	{
		slotValue = 0;
	}
	
	public void generateValue()
	{
		//Randomly generate number from 1-9
		Random randomGen = new Random();
		slotValue = 1 + randomGen.nextInt(9);
	}
	
	public int getValue()
	{
		return slotValue;
	}
	
/*	public static void main(String args[])
	{
		SlotNumber slot = new SlotNumber();
		int rand = 0 ;
		
		for(int i = 0; i < 10; i++)
		{
			slot.generateValue();
			rand = slot.getValue();
			System.out.println("Random test: " + rand);
		}
	}*/
}
